home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / computerjanitor / exc_tests.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.2 KB  |  23 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import unittest
  5. import computerjanitor
  6.  
  7. class ComputerJanitorExceptionTests(unittest.TestCase):
  8.     
  9.     def testReturnsStrCorrectly(self):
  10.         e = computerjanitor.Exception()
  11.         e._str = 'pink'
  12.         self.assertEqual(str(e), 'pink')
  13.  
  14.  
  15.  
  16. class UnimplementedMethodTests(unittest.TestCase):
  17.     
  18.     def testErrorMessageContainsMethodName(self):
  19.         e = computerjanitor.UnimplementedMethod(self.__init__)
  20.         self.assert_('__init__' in str(e))
  21.  
  22.  
  23.